﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Brand.aspx.cs" Inherits="Pages_Brand" MasterPageFile="~/Admin/MasterPage.master" Title="品牌管理" %>

<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceHolder1">
    <div class="toolbar">
        <XCL:LinkBox ID="lbAdd" runat="server" BoxHeight="1165px" BoxWidth="440px" Url="BrandForm.aspx"
            IconLeft="../images/icons/icon005a2.gif"><b>添加品牌</b></XCL:LinkBox>
        关键字：<asp:TextBox ID="txtKey" runat="server"></asp:TextBox>
        <asp:Button ID="btnSearch" runat="server" Text="查询" />
    </div>
    <asp:GridView ID="gvBrand" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" DataSourceID="ObjectDataSource1" AllowPaging="True" AllowSorting="True" CssClass="m_table" PageSize="20" CellPadding="0" GridLines="None" EnableModelValidation="True">
        <Columns>
            <asp:BoundField DataField="ID" HeaderText="编号" SortExpression="ID" InsertVisible="False" ReadOnly="True" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="60px" CssClass="key" />
            </asp:BoundField>
            <asp:BoundField DataField="SiteID" HeaderText="站点编号" SortExpression="SiteID" />
            <asp:BoundField DataField="Name" HeaderText="名称" SortExpression="Name" />
            <asp:BoundField DataField="BranchInnerCode" HeaderText="分支内部代码" SortExpression="BranchInnerCode" />
            <asp:BoundField DataField="Alias" HeaderText="别名" SortExpression="Alias" />
            <asp:BoundField DataField="URL" HeaderText="网址" SortExpression="URL" />
            <asp:BoundField DataField="ImagePath" HeaderText="图片路径" SortExpression="ImagePath" />
            <asp:BoundField DataField="IndexTemplate" HeaderText="索引模版" SortExpression="IndexTemplate" />
            <asp:BoundField DataField="ListTemplate" HeaderText="列表模版" SortExpression="ListTemplate" />
            <asp:BoundField DataField="ListNameRule" HeaderText="列表名称规则" SortExpression="ListNameRule" />
            <asp:BoundField DataField="DetailTemplate" HeaderText="详细模版" SortExpression="DetailTemplate" />
            <asp:BoundField DataField="DetailNameRule" HeaderText="详细名称规则" SortExpression="DetailNameRule" />
            <asp:BoundField DataField="RssTemplate" HeaderText="源模版" SortExpression="RssTemplate" />
            <asp:BoundField DataField="RssNameRule" HeaderText="源名称规则" SortExpression="RssNameRule" />
            <asp:BoundField DataField="OrderFlag" HeaderText="订单标记" SortExpression="OrderFlag" />
            <asp:BoundField DataField="ListPageSize" HeaderText="列表页大小" SortExpression="ListPageSize" />
            <asp:BoundField DataField="ListPage" HeaderText="列表页" SortExpression="ListPage" />
            <asp:BoundField DataField="PublishFlag" HeaderText="发布标记" SortExpression="PublishFlag" />
            <asp:BoundField DataField="SingleFlag" HeaderText="" SortExpression="SingleFlag" />
            <asp:BoundField DataField="HitCount" HeaderText="点击数量" SortExpression="HitCount" />
            <asp:BoundField DataField="Meta_Keywords" HeaderText="" SortExpression="Meta_Keywords" />
            <asp:BoundField DataField="Meta_Description" HeaderText="" SortExpression="Meta_Description" />
            <asp:BoundField DataField="KeywordFlag" HeaderText="关键字标记" SortExpression="KeywordFlag" />
            <asp:BoundField DataField="KeywordSetting" HeaderText="关键字设置" SortExpression="KeywordSetting" />
            <asp:BoundField DataField="Memo" HeaderText="注释" SortExpression="Memo" />
            <asp:BoundField DataField="Prop1" HeaderText="属性1" SortExpression="Prop1" />
            <asp:BoundField DataField="Prop2" HeaderText="属性2" SortExpression="Prop2" />
            <asp:BoundField DataField="Prop3" HeaderText="属性3" SortExpression="Prop3" />
            <asp:BoundField DataField="Prop4" HeaderText="属性4" SortExpression="Prop4" />
            <asp:BoundField DataField="AddUser" HeaderText="添加用户" SortExpression="AddUser" />
            <asp:BoundField DataField="AddTime" HeaderText="添加时间" SortExpression="AddTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="ModifyUser" HeaderText="修改用户" SortExpression="ModifyUser" />
            <asp:BoundField DataField="ModifyTime" HeaderText="修改时间" SortExpression="ModifyTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupNo" HeaderText="备份编号" SortExpression="BackupNo" />
            <asp:BoundField DataField="BackupOperator" HeaderText="备份操作者" SortExpression="BackupOperator" />
            <asp:BoundField DataField="BackupTime" HeaderText="备份时间" SortExpression="BackupTime" DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" >
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="120px" />
            </asp:BoundField>
            <asp:BoundField DataField="BackupMemo" HeaderText="备份注释" SortExpression="BackupMemo" />
            <XCL:LinkBoxField HeaderText="编辑" DataNavigateUrlFields="ID" DataNavigateUrlFormatString="BrandForm.aspx?ID={0}" Height="1165px" Text="编辑" Width="440px" Title="编辑品牌">
                <ItemStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </XCL:LinkBoxField>
            <asp:TemplateField ShowHeader="False" HeaderText="删除">
                <ItemTemplate>
                    <asp:LinkButton ID="btnDelete" runat="server" CausesValidation="False" CommandName="Delete"
                        OnClientClick='return confirm("确定删除吗？")' Text="删除"></asp:LinkButton>
                </ItemTemplate>
                <HeaderStyle HorizontalAlign="Center" VerticalAlign="Middle" Width="30px" />
            </asp:TemplateField>
        </Columns>
        <EmptyDataTemplate>
            没有符合条件的数据！
        </EmptyDataTemplate>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="NXCMS.Shop.Brand"
        DeleteMethod="Delete" EnablePaging="True" OldValuesParameterFormatString="original_{0}"
        SelectCountMethod="SearchCount" SelectMethod="Search" SortParameterName="orderClause"
        TypeName="NXCMS.Shop.Brand">
        <SelectParameters>
            <asp:ControlParameter ControlID="txtKey" Name="key" PropertyName="Text" Type="String" />
            <asp:Parameter Name="orderClause" Type="String" />
            <asp:Parameter Name="startRowIndex" Type="Int32" />
            <asp:Parameter Name="maximumRows" Type="Int32" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <XCL:GridViewExtender ID="gvExt" runat="server">
    </XCL:GridViewExtender>
</asp:Content>